module app {

	export class LoginCommand extends puremvc.SimpleCommand implements puremvc.ICommand {

		public constructor() {
			super();
		}

		public execute(notification: puremvc.INotification): void {
			let loginProxy = <LoginProxy>this.facade.retrieveProxy(LoginProxy.NAME);
			if (loginProxy.checkPassword("1", "1")) {
				let mm = <MainMenuMediator>this.facade.retrieveMediator(MainMenuMediator.NAME);
				mm.show();
			} else {
				console.log("login falied.");
			}
		}
	}
}